//
//  SeleButton.m
//  tabbar
//
//  Created by KWSD on 16/5/13.
//  Copyright © 2016年 孙添凤. All rights reserved.
//

#import "SeleButton.h"
#import "UIColor+CL.h"
@implementation SeleButton

-(instancetype)initWithFrame:(CGRect)frame{
    if(self=[super initWithFrame:frame]){
        
    }
    return self;
}
//按钮选择状态与非选择状态
-(void)setSelectedColor:(unsigned long)selcol andUnSelectedColor:(unsigned long)unselcol{
    if(self.selected==YES){
        [self setBackgroundColor:[UIColor colorWithHex:selcol]];
    }else{
         [self setBackgroundColor:[UIColor colorWithHex:unselcol]];
    }
}
@end
